
<%-------------------------------------------------------------------
 * 页面名称：modifyPass.jsp
 * 功能描述：修改登录密码，修改支付密码
 * Action  : 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ page import="cn.agiledata.bank.account.service.IAccountConst"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="/WEB-INF/conf/tld/ipb.tld"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
String path = request.getContextPath();
response.setHeader("Cache-Control", "no-store, no-cache");
response.setHeader("Expires", "-1");
response.flushBuffer();
%>
<script language="javascript" src="<%=path%>/js/jquery-1.4.3.min.js"></script>
<script type='text/javascript' src='<%=path%>/js/vnv/passwordStrength.js'></script>
<script type="text/javascript" src="<%=path%>/js/PassGuardCtrl.js"></script>
<script type='text/javascript' src='<%=path%>/js/demo.js'></script>
<script type="text/javascript">
	function submitProcess() {
		var formName = document.forms["0"];
		if(FormSubmit5()){
			
			var PwdResult=pgeditor.pwdResult();
			getObj('pass').value=PwdResult;
			var PwdResult1=pgeditor1.pwdResult();
			getObj('newPass').value=PwdResult1;
			var PwdResult2=pgeditor2.pwdResult();
			getObj('reNewPass').value=PwdResult2;
			
			formName.submit();
		}
	}
	
	 window.onload = function(){	 
	   pgeditor.pgInitialize();//初始化控件
	   pgeditor1.pgInitialize();//初始化控件
	   pgeditor2.pgInitialize();//初始化控件
	   window.setInterval("GetLevel()",800);
	   window.setInterval("GetLevel1()",800);
	   window.setInterval("GetLevel2()",800);
	}
	
</script>
<div id="main">
	<div class="content_right">
		<div style="width:745px;margin-left:10px;">
			<div class="titleinfo">
				<logic:equal name="ModifyLoginPassForm" property="modifyType"
					value="<%=IAccountConst.MODIFY_TYPE_PAY%>">修改支付</logic:equal>
				<logic:equal name="ModifyLoginPassForm" property="modifyType"
					value="<%=IAccountConst.MODIFY_TYPE_LOGIN%>">修改登录</logic:equal>
				密码
			</div>
			<div class="edit_pass">
				<table width="100%" border="0" align="center" cellpadding="5"
					cellspacing="1">
					<html:form action="modifyPassword.do" method="post">
						<!-- 重置标志 0--不重置，需要校验旧密码 1--重置，无需校验旧密码 -->
						<html:hidden property="resetFlag" value="0" />
						<!-- 对象类型 user--用户(个人或企业admin) operator--企业操作员 -->
						<html:hidden property="objectType" />
						<!--对象Id，修改企业操作员的密码需传入此参数 -->
						<html:hidden property="objectId" />
						<!-- 修改类型 login--登录密码 pay--支付密码 -->
						<html:hidden property="modifyType" />
						<!-- 旧密码 -->
						<tr>
							<td height="40" align="right">
								<span class="orang12b">*</span> 旧密码：
							</td>
							<td bgcolor="#FFFFFF">
								<script type="text/javascript">pgeditor.generate()</script>
								<input name="pass" type="hidden" />
							
								<logic:equal name="ModifyLoginPassForm" property="objectType"
									value="<%=IAccountConst.OBJECT_TYPE_USER%>">
									<logic:equal name="ModifyLoginPassForm" property="modifyType"
										value="<%=IAccountConst.MODIFY_TYPE_PAY%>">&nbsp;&nbsp;<a
											href="<%=path%>/page/myspace/forgotPayPassword.do"
											class="menuTextBlue">忘记旧密码</a>
									</logic:equal>
								</logic:equal>
							</td>
							<td width="26%" bgcolor="#FFFFFF">
								<table border="0" cellpadding="0" cellspacing="1" bgcolor="#D0D0D0" >
									<tr>
										<td width="48" height="6" align="center" background="../../images/bg.gif" id="passwd_level_1"></td>
										<td width="48" height="6" align="center" background="../../images/bg.gif" id="passwd_level_2"></td>
										<td width="48" height="6" align="center" background="../../images/bg.gif" id="passwd_level_3"></td>
									</tr>
								</table>	
								<table border="0" cellpadding="0" cellspacing="1" >	
									<tr>
									  <td width="48" height="18" align="center" class="STYLE3">弱</td>
									  <td width="48" height="18" align="center" class="STYLE3">中</td>
									  <td width="48" height="18" align="center" class="STYLE3">强</td>
									  </tr>
								</table>
							</td>
						</tr>
						<!-- 新密码 -->
						<tr>
							<td width="20%" height="40" align="right">
								<span class="orang12b">*</span> 新密码：
							</td>
							<td width="40%" bgcolor="#FFFFFF">
								<script type="text/javascript">pgeditor1.generate()</script>
								<input name="newPass" type="hidden" />
							</td>
							<td bgcolor="#FFFFFF">
								<table border="0" cellpadding="0" cellspacing="1" bgcolor="#D0D0D0" >
									<tr>
										<td width="48" height="6" align="center" background="../../images/bg.gif" id="passwd_level_4"></td>
										<td width="48" height="6" align="center" background="../../images/bg.gif" id="passwd_level_5"></td>
										<td width="48" height="6" align="center" background="../../images/bg.gif" id="passwd_level_6"></td>
									</tr>
								</table>	
								<table border="0" cellpadding="0" cellspacing="1" >	
									<tr>
									  <td width="48" height="18" align="center" class="STYLE3">弱</td>
									  <td width="48" height="18" align="center" class="STYLE3">中</td>
									  <td width="48" height="18" align="center" class="STYLE3">强</td>
									  </tr>
								</table>
							</td>
						</tr>
						<!-- 重复新密码 -->
						<tr>
							<td height="40" align="right">
								<span class="orang12b">* </span> 重复新密码：
							</td>
							<td bgcolor="#FFFFFF">
								<script type="text/javascript">pgeditor2.generate()</script>
								<input name="reNewPass" type="hidden" />
							</td>
							<td bgcolor="#FFFFFF">
								<table border="0" cellpadding="0" cellspacing="1" bgcolor="#D0D0D0" >
									<tr>
										<td width="48" height="6" align="center" background="../../images/bg.gif" id="passwd_level_7"></td>
										<td width="48" height="6" align="center" background="../../images/bg.gif" id="passwd_level_8"></td>
										<td width="48" height="6" align="center" background="../../images/bg.gif" id="passwd_level_9"></td>
									</tr>
								</table>	
								<table border="0" cellpadding="0" cellspacing="1" >	
									<tr>
									  <td width="48" height="18" align="center" class="STYLE3">弱</td>
									  <td width="48" height="18" align="center" class="STYLE3">中</td>
									  <td width="48" height="18" align="center" class="STYLE3">强</td>
									  </tr>
								</table>
							</td>
						</tr>
						<tr>
							<td height="55" align="right">
								&nbsp;
							</td>
							<td height="50" colspan="2" bgcolor="#FFFFFF">
								<input type="button" name="sure" value="确 定"
									class="button_style" onclick="return submitProcess();" />
								<input type="button" name="return" class="button_style"
									onclick="location.href='accountInfo.do?showTab=3';" value="返 回" />
							</td>
						</tr>
					</html:form>
				</table>
			</div>
		</div>
	</div>
</div>


